/* 版心 */
.wrapper {
    margin: 0 auto;
    width: 1240px;
}
/* 导航栏 */
.shortcut{
    background-color: #333333;
    height: 52px;
}
/* 版心-导航栏 */
.shortcut .wrapper{
    display: flex;
    justify-content: flex-end;
    line-height: 52px;
}
/* 导航栏文字变成一行 垂直居中 */
.shortcut ul{
    display: flex;
    line-height: 52px;
}
/* 每一块文字 */
.shortcut li a{
    padding:0 15px;
    color: #fff;
    font-size: 14px;
    border-right:1px solid #999;
}
/* 手机版无右边框 */
.shortcut li:last-child a{
    border-right: 0;
}
/* 手机版-图标和文字之间的距离 */
.shortcut li:last-child .iconfont{
    margin-right: 5px;
}
/* 请先登录字体变色 */
.shortcut li .login {
    color: #5EB69C;
}
/* 头部 */
.header {
    display: flex;
    margin-top: 22px;
    margin-bottom: 22px;
    height: 88px;
}
/* 头部-logo */
.header .logo{
    margin-right: 40px;
    height: 88px;
    width: 200px;
    background-image: url(../images/logo.png);
}
/* 头部-logo的链接 */
.logo a{
    display: block;
    width: 200px;
    height: 88px;
}
/* 头部-导航 */
.header .nav{
    margin-top: 33px;
    margin-bottom: 28px;
}
/* 头部-导航文字成一行 */
.header .nav ul{
    display: flex;
}
/* 头部-导航每一块文字 */
.header .nav li{
    margin-right: 47px;
}
/* 头部-导航每一块文字的链接 */
.header .nav li a{
    padding-bottom: 10px;
}
/* 头部-导航每一块文字的链接鼠标悬停*/
.header .nav li a:hover{
    border-bottom: 2px solid #5EB69C;
    color: #5EB69C;
}
/* 头部-搜索 */
.search{
    display: flex;
    width: 170px;
    height: 34px;
    margin-top: 30px;
    margin-right: 45px;
    border-bottom: 2px solid #F4F4F4;
    align-items: center;
}
/* 头部-搜索输入框 */
.search input{
    width: 0;
    flex: 1;
    padding-top: 4px;
}
/* 头部-搜索图标 */
.search .iconfont{
    font-size: 16px;
    margin-right: 8px;
    color: #ccc;
}
/* 头部-搜索提示文本 */
.search input::placeholder {
    font-size: 16px;
    color: #ccc;
}
/* 头部-购物车图标 */
.cart .iconfont{
    font-size: 30px;
}
/* 头部-购物车 */
.cart{
    margin-top: 28px;
    /* 相对定位 */
    position: relative;
}
/* 头部-购物车数字 */
.cart i{
    /* 绝对定位 */
    position: absolute;
    top:3px;
    left: 15px;
    padding: 0 5px;
    height: 15px;
    line-height: 15px;
    color: #fff;
    background-color: #E26237;
    border-radius: 8px;
}
 /* 新鲜好物 */
.goods .title{
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 30px;
    height: 42px;
    font-size: 30px;
    color: #333;
}
.goods .title .left{
    display: flex;
}
.goods .title .left p{
    font-size: 16px;
    color: #A1A1A1;
    margin-left: 35px;
    margin-top: 24px;
}
.goods .title .right .more{
    font-size: 16px;
    color: #A1A1A1;
    line-height: 42px;
}
.bd ul{
    display: flex;
    align-items: space-between;
    margin-bottom: 112px;
}
.bd li{
    width: 304px;
    height: 304px;
    margin-right: 8px;
}
.bd li:last-child{
    margin-right: 0;
}
.goods .bd li .txt{
    height: 100px;
    width: 304px;
    background-color: #EEF9F4;
}
.bd li .txt h4{
    display: flex;
    justify-content: center;
    font-size: 20px;
    padding-top: 18px;
    padding-bottom: 40px;
    height: 28px;
    color: #333;
}
.bd li .txt p{
    width: 18px;
    font-size: 22px;
    margin-left: 131px;
    height: 31px;
    padding-bottom: 15px;
    color: #AA2113;
}
/* 人气推荐 */
.recommend .title{
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 30px;
    height: 42px;
    font-size: 30px;
    color: #333;
}
.recommend .title .left{
    display: flex;
}
.recommend .title .left p{
    font-size: 16px;
    color: #A1A1A1;
    margin-left: 35px;
    margin-top: 24px;
}
.recommend .bd li .txt p{
    display: flex;
    justify-content: center;
    font-size: 16px;
    width: 133px;
    height: 22px;
    margin-left: 85px;
    margin-right: 85px;
    line-height: 22px;
    color: #A1A1A1;
}
/* 热门品牌 */
.brand {
    margin-top: 60px;
    height: 468px;
    background-color: #F5F5F5;
}
.brand .wrapper {
    overflow: hidden;
    height: 468px;
}
.brand .title{
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
    height: 42px;
    font-size: 30px;
    color: #333;
}
.brand .title .left{
    display: flex;
}
.brand .title .left p{
    font-size: 16px;
    color: #A1A1A1;
    margin-left: 35px;
    margin-top: 24px;
}
.brand .button {
    position: absolute;
    right: 0;
    bottom: 10px;
    display: flex;
    margin-bottom: -10px;
}
.brand .button a {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    color: #fff;
}
.brand .button .prev {
    background-color: #ddd;
}
.brand .button .next {
    background-color: #00BE9A;
}
.brand .bd ul{
    display: flex;
    justify-content: space-between;
}
.brand .bd li {
    width: 244px;
    height: 306px;
    margin-top: 30px;
}
/* 生鲜 */
.fresh .title{
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}
.fresh .title .left{
    font-size: 30px;
}
.fresh .title .right{
    display: flex;
    padding-top: 12px;
}
.fresh .title .right ul{
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    margin-right: 58px;
}
.fresh .title .right ul a{
    display: block;
    margin-left: 6px;
    padding: 0 7px;
    height: 20px;
    line-height: 20px;
}
.fresh .title .right ul a.active{
    color: #fff;
    background-color: #00BE9A;
}
.fresh .title .right .more{
    color: #A1A1A1;
    padding-top: 8px;
}
.fresh .title .right .iconfont{
    color: #A1A1A1;
}
/* 生鲜内容 */
.content {
    display: flex;
    justify-content: space-between;
}
.content .left {
    width: 248px;
    height: 610px;
}
.content .right {
    width: 968px;
    height: 610px;
}
.content .right ul {
    display: flex;
    flex-wrap: wrap;
}
.content .right li {
    position: relative;
    padding: 10px 21px 0;
    width: 242px;
    height: 305px;
    border: 2px solid #fff;
    /* 为了隐藏绿色cover */
    overflow: hidden;
}
/* 产品内容 */
.content .pic {
    width: 200px;
    height: 180px;
}
.content .info {
    margin-top: 14px;
    margin-bottom: 5px;
    height: 60px;
    line-height: 19px;
}
.content .price {
    color: #AF2F22;
}
.content .price span {
    margin-left: 5px;
    font-size: 22px;
} 
/* 鼠标移入 */
.content li {
    position: relative;
    width: 242px;
    border: 1px solid transparent;
    transition: border 0.5s;
}
.content li .cover{
    position: absolute;
    left: 0;
    bottom: -84px;
    padding-top: 15px;
    width: 242px;
    height: 84px;
    background-color: #00BE9A;
    color: #fff;
    text-align: center;
    transition: all 0.5s;
    box-sizing: border-box;
}
.content .cover p:nth-child(1) {
    font-size: 18px;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.content .cover p:nth-child(2) {
    margin: 3px auto 6px;
    width: 120px;
    height: 1px;
    background-color: rgba(255,255,255,0.11);
}
.content .cover p:nth-child(3) {
    font-size: 13px;
    margin: 0;
} 
.content .cover p:nth-child(3) .iconfont {
    font-size: 14px;
}
/* 鼠标悬停到li，显示cover，改变位置 */
.content .right li:hover .cover {
    bottom: 0;
}
.content .right li:hover {
    border: 2px solid #00BE9A;
}
  /* 最新专题 */
.topic {
    margin-bottom: 40px;
}
.topic .title {
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
}
.topic .title .left h3{
    font-size: 30px;
    margin-bottom: 30px;
}
.topic-bd ul {
    display: flex;
    justify-content: space-between;
}
.topic-bd li {
    width: 405px;
    height: 355px;
}
.topic-bd ul {
    display: flex;
    justify-content: space-between;
}
.topic-bd li {
    width: 405px;
    height: 355px;
}
.topic-bd .pic {
    position: relative;
    width: 405px;
    height: 288px;
}
.topic-bd .txt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    width: 405px;
    height: 67px;
    font-size: 14px;
    color: #666;
}
.topic-bd .txt .left {
    display: flex;
}
.topic-bd .txt .left p {
    margin-right: 20px;
}
.topic-bd .txt .left p:nth-child(1) i {
    color: #AA2113;
}
.topic .title .right .more{
    display: flex;
    align-items: center;
    padding: 30px 30px;
    color: #A1A1A1;
    height: 22px;
    line-height: 22px;
}
/* 底部 */
.footer {
    height: 580px;
    background-color: #F5F5F5;
}
/* 服务 */
.service {
    padding: 60px 0;
    height: 178px;
    border-bottom: 1px solid #E8E8E8;
    margin-top: 100px;
}
.service ul{
    display: flex;
    justify-content: space-evenly;
}
.service li{
    display: flex;
    width: 190px;
    height: 58px;
}
.service li h5{
    width: 58px;
    height: 58px;
    background-image: url(../images/sprite.png);
}
.service li:nth-child(2) h5{
    width: 58px;
    height: 58px;
    background-position: 0 -58px;
    background-image: url(../images/sprite.png);
}
.service li:nth-child(3) h5{
    width: 58px;
    height: 58px;
    background-position: 0 -116px;
    background-image: url(../images/sprite.png);
}
.service li:nth-child(4) h5{
    width: 58px;
    height: 58px;
    background-position: 0 -174px;
    background-image: url(../images/sprite.png);
}
.service li p{
    margin-left: 20px;
    line-height: 58px;
    font-size: 28px;
}
/* 帮助中心 */
.help {
    display: flex;
    justify-content: space-between;
    padding-top: 60px;
    height: 300px;
}
.help .left{
    display: flex;
}
.help .left dl{
    margin-right: 84px;
}
.help .left dt{
    color: #333;
    font-size: 18px;
    margin-bottom: 30px;
}
.help .left dd{
    margin-bottom: 10px;
}
.help .left dd a{
    color: #969696;
}
.help .left dd .iconfont{
    color: #6bbfae;
}
.help .right ul{
    display: flex;
    width: 295px;
    height: 155px;
}
.help .right .pic{
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}
.help .right ul li:first-child{
    margin-right: 55px;
}
.help .right p{
    color: #969696;
    text-align: center;
}
/* 版权 */
.copyright{
    text-align: center;
}
.copyright p{
    color:#A1A1A1;
    margin-bottom: 10px;
}
.copyright p a {
    margin: 0 10px;
    color: #A1A1A1;
}